<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::DataView&lt; DatasetType &gt; Class Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_data_view.html">DataView</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_data_view-members.html">List of all members</a> &#124;
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle"><div class="title">shark::DataView&lt; DatasetType &gt; Class Template Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Constant time Element-Lookup for Datasets.  
 <a href="classshark_1_1_data_view.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_data_view_8h_source.html">shark/Data/DataView.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:af6445b99d55d8f0db60da959d9c68edc" id="r_af6445b99d55d8f0db60da959d9c68edc"><td class="memItemLeft" align="right" valign="top">typedef dataset_type::const_element_reference&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_data_view.html#af6445b99d55d8f0db60da959d9c68edc">const_reference</a></td></tr>
<tr class="separator:af6445b99d55d8f0db60da959d9c68edc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4aed6ddb082c41f4db8025b202ed236" id="r_ae4aed6ddb082c41f4db8025b202ed236"><td class="memItemLeft" align="right" valign="top">typedef boost::mpl::if_&lt; std::is_const&lt; DatasetType &gt;, typenamedataset_type::const_element_reference, typenamedataset_type::element_reference &gt;::type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_data_view.html#ae4aed6ddb082c41f4db8025b202ed236">reference</a></td></tr>
<tr class="separator:ae4aed6ddb082c41f4db8025b202ed236"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab998c6011a12ee2a3fd7d9215564a582" id="r_ab998c6011a12ee2a3fd7d9215564a582"><td class="memItemLeft" align="right" valign="top">typedef IteratorBase&lt; <a class="el" href="classshark_1_1_data_view.html#ae4aed6ddb082c41f4db8025b202ed236">reference</a>, <a class="el" href="classshark_1_1_data_view.html">DataView</a>&lt; DatasetType &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_data_view.html#ab998c6011a12ee2a3fd7d9215564a582">iterator</a></td></tr>
<tr class="separator:ab998c6011a12ee2a3fd7d9215564a582"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8040495749c12a5d12fafe92bef9769d" id="r_a8040495749c12a5d12fafe92bef9769d"><td class="memItemLeft" align="right" valign="top">typedef IteratorBase&lt; <a class="el" href="classshark_1_1_data_view.html#af6445b99d55d8f0db60da959d9c68edc">const_reference</a>, <a class="el" href="classshark_1_1_data_view.html">DataView</a>&lt; DatasetType &gt; const &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_data_view.html#a8040495749c12a5d12fafe92bef9769d">const_iterator</a></td></tr>
<tr class="separator:a8040495749c12a5d12fafe92bef9769d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab9a6a0d93261ae6e467ff03dc1ebdc69" id="r_ab9a6a0d93261ae6e467ff03dc1ebdc69"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_data_view.html#ab9a6a0d93261ae6e467ff03dc1ebdc69">DataView</a> ()</td></tr>
<tr class="separator:ab9a6a0d93261ae6e467ff03dc1ebdc69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1cb988a3c7a5d0d4bf13eec0af75e90" id="r_ae1cb988a3c7a5d0d4bf13eec0af75e90"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_data_view.html#ae1cb988a3c7a5d0d4bf13eec0af75e90">DataView</a> (DatasetType &amp;<a class="el" href="classshark_1_1_data_view.html#a20c3d8aa10aa6056277df2f02261033b">dataset</a>)</td></tr>
<tr class="separator:ae1cb988a3c7a5d0d4bf13eec0af75e90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a436f5cd8b4ebf4e709edd2932922f801" id="r_a436f5cd8b4ebf4e709edd2932922f801"><td class="memTemplParams" colspan="2">template&lt;class IndexRange &gt; </td></tr>
<tr class="memitem:a436f5cd8b4ebf4e709edd2932922f801"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classshark_1_1_data_view.html#a436f5cd8b4ebf4e709edd2932922f801">DataView</a> (<a class="el" href="classshark_1_1_data_view.html">DataView</a>&lt; DatasetType &gt; const &amp;view, IndexRange const &amp;indices)</td></tr>
<tr class="memdesc:a436f5cd8b4ebf4e709edd2932922f801"><td class="mdescLeft">&#160;</td><td class="mdescRight">create a subset of the dataset type using only the elemnt indexed by indices  <br /></td></tr>
<tr class="separator:a436f5cd8b4ebf4e709edd2932922f801"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a096d8cc31117ca710fe41f79c46a9faf" id="r_a096d8cc31117ca710fe41f79c46a9faf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_data_view.html#ae4aed6ddb082c41f4db8025b202ed236">reference</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_data_view.html#a096d8cc31117ca710fe41f79c46a9faf">operator[]</a> (std::size_t position)</td></tr>
<tr class="separator:a096d8cc31117ca710fe41f79c46a9faf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b1faee54e297b25d77ef24375d22fe2" id="r_a4b1faee54e297b25d77ef24375d22fe2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_data_view.html#af6445b99d55d8f0db60da959d9c68edc">const_reference</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_data_view.html#a4b1faee54e297b25d77ef24375d22fe2">operator[]</a> (std::size_t position) const</td></tr>
<tr class="separator:a4b1faee54e297b25d77ef24375d22fe2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7652743856e2ef532984d54ae1eb6104" id="r_a7652743856e2ef532984d54ae1eb6104"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_data_view.html#ae4aed6ddb082c41f4db8025b202ed236">reference</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_data_view.html#a7652743856e2ef532984d54ae1eb6104">front</a> ()</td></tr>
<tr class="separator:a7652743856e2ef532984d54ae1eb6104"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3076578a2ecd9caf720e970976bec8d" id="r_ac3076578a2ecd9caf720e970976bec8d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_data_view.html#af6445b99d55d8f0db60da959d9c68edc">const_reference</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_data_view.html#ac3076578a2ecd9caf720e970976bec8d">front</a> () const</td></tr>
<tr class="separator:ac3076578a2ecd9caf720e970976bec8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af00a7bc78ffc60fcacedbe291b4d24e6" id="r_af00a7bc78ffc60fcacedbe291b4d24e6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_data_view.html#ae4aed6ddb082c41f4db8025b202ed236">reference</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_data_view.html#af00a7bc78ffc60fcacedbe291b4d24e6">back</a> ()</td></tr>
<tr class="separator:af00a7bc78ffc60fcacedbe291b4d24e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aceed1b5fafb9bf86149152708aedb979" id="r_aceed1b5fafb9bf86149152708aedb979"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_data_view.html#af6445b99d55d8f0db60da959d9c68edc">const_reference</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_data_view.html#aceed1b5fafb9bf86149152708aedb979">back</a> () const</td></tr>
<tr class="separator:aceed1b5fafb9bf86149152708aedb979"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8eb1ce492f50ab67e4c222f1315f83cc" id="r_a8eb1ce492f50ab67e4c222f1315f83cc"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_data_view.html#a8eb1ce492f50ab67e4c222f1315f83cc">index</a> (std::size_t position) const</td></tr>
<tr class="memdesc:a8eb1ce492f50ab67e4c222f1315f83cc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Position of the element in the dataset.  <br /></td></tr>
<tr class="separator:a8eb1ce492f50ab67e4c222f1315f83cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c811224fc77356555fcecfb5b41cb65" id="r_a4c811224fc77356555fcecfb5b41cb65"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_data_view.html#a4c811224fc77356555fcecfb5b41cb65">batch</a> (std::size_t position) const</td></tr>
<tr class="memdesc:a4c811224fc77356555fcecfb5b41cb65"><td class="mdescLeft">&#160;</td><td class="mdescRight">Index of the batch holding the element.  <br /></td></tr>
<tr class="separator:a4c811224fc77356555fcecfb5b41cb65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a892be77ecf008f78e44452b1a201980a" id="r_a892be77ecf008f78e44452b1a201980a"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_data_view.html#a892be77ecf008f78e44452b1a201980a">positionInBatch</a> (std::size_t position) const</td></tr>
<tr class="memdesc:a892be77ecf008f78e44452b1a201980a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Index inside the batch holding the element.  <br /></td></tr>
<tr class="separator:a892be77ecf008f78e44452b1a201980a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71ba14d4f067dc437d6683dac9982f77" id="r_a71ba14d4f067dc437d6683dac9982f77"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_data_view.html#a71ba14d4f067dc437d6683dac9982f77">size</a> () const</td></tr>
<tr class="separator:a71ba14d4f067dc437d6683dac9982f77"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e7c59021eff4745396ed9951c2f05ca" id="r_a3e7c59021eff4745396ed9951c2f05ca"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_data_view.html#ab998c6011a12ee2a3fd7d9215564a582">iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_data_view.html#a3e7c59021eff4745396ed9951c2f05ca">begin</a> ()</td></tr>
<tr class="separator:a3e7c59021eff4745396ed9951c2f05ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02edf0f65deefa88fbcaef18276b5041" id="r_a02edf0f65deefa88fbcaef18276b5041"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_data_view.html#a8040495749c12a5d12fafe92bef9769d">const_iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_data_view.html#a02edf0f65deefa88fbcaef18276b5041">begin</a> () const</td></tr>
<tr class="separator:a02edf0f65deefa88fbcaef18276b5041"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a238dbacc7eded17835f90c6edccdcb95" id="r_a238dbacc7eded17835f90c6edccdcb95"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_data_view.html#ab998c6011a12ee2a3fd7d9215564a582">iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_data_view.html#a238dbacc7eded17835f90c6edccdcb95">end</a> ()</td></tr>
<tr class="separator:a238dbacc7eded17835f90c6edccdcb95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a232c001d3d8c239031040dbbb3eb7437" id="r_a232c001d3d8c239031040dbbb3eb7437"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_data_view.html#a8040495749c12a5d12fafe92bef9769d">const_iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_data_view.html#a232c001d3d8c239031040dbbb3eb7437">end</a> () const</td></tr>
<tr class="separator:a232c001d3d8c239031040dbbb3eb7437"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20c3d8aa10aa6056277df2f02261033b" id="r_a20c3d8aa10aa6056277df2f02261033b"><td class="memItemLeft" align="right" valign="top">dataset_type const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_data_view.html#a20c3d8aa10aa6056277df2f02261033b">dataset</a> () const</td></tr>
<tr class="separator:a20c3d8aa10aa6056277df2f02261033b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class DatasetType&gt;<br />
class shark::DataView&lt; DatasetType &gt;</div><p>Constant time Element-Lookup for Datasets. </p>
<p>Datasets are fast for random lookup of batches. Since batch sizes can be arbitrary structured and changed by the user, there is no way for the <a class="el" href="classshark_1_1_data.html" title="Data container.">Data</a> and <a class="el" href="classshark_1_1_labeled_data.html" title="Data set for supervised learning.">LabeledData</a> classes to provide fast random access to single elements. Still, this property is needed quite often, for example for creating subsets, randomize data or tree structures. A View stores the position of every element in a dataset. So it has constant time access to the elements but it also requires linear memory in the number of elements in the set. This is typically small compared to the size of the set itself, but construction imposes an considerable overhead.</p>
<p>In contrast to (Un)<a class="el" href="classshark_1_1_labeled_data.html" title="Data set for supervised learning.">LabeledData</a>, which is centered around batches, the View is centered around single elements, so its iterators iterate over the elements. For a better support for bagging an index method is added which returns the position of the element in the underlying data container. Also the iterators are indexed and return this index. </p>

<p class="definition">Definition at line <a class="el" href="_data_view_8h_source.html#l00060">60</a> of file <a class="el" href="_data_view_8h_source.html">DataView.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a8040495749c12a5d12fafe92bef9769d" name="a8040495749c12a5d12fafe92bef9769d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8040495749c12a5d12fafe92bef9769d">&#9670;&#160;</a></span>const_iterator</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef IteratorBase&lt;<a class="el" href="classshark_1_1_data_view.html#af6445b99d55d8f0db60da959d9c68edc">const_reference</a>, <a class="el" href="classshark_1_1_data_view.html">DataView</a>&lt;DatasetType&gt; const &gt; <a class="el" href="classshark_1_1_data_view.html">shark::DataView</a>&lt; DatasetType &gt;::const_iterator</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_data_view_8h_source.html#l00138">138</a> of file <a class="el" href="_data_view_8h_source.html">DataView.h</a>.</p>

</div>
</div>
<a id="af6445b99d55d8f0db60da959d9c68edc" name="af6445b99d55d8f0db60da959d9c68edc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6445b99d55d8f0db60da959d9c68edc">&#9670;&#160;</a></span>const_reference</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef dataset_type::const_element_reference <a class="el" href="classshark_1_1_data_view.html">shark::DataView</a>&lt; DatasetType &gt;::const_reference</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_data_view_8h_source.html#l00065">65</a> of file <a class="el" href="_data_view_8h_source.html">DataView.h</a>.</p>

</div>
</div>
<a id="ab998c6011a12ee2a3fd7d9215564a582" name="ab998c6011a12ee2a3fd7d9215564a582"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab998c6011a12ee2a3fd7d9215564a582">&#9670;&#160;</a></span>iterator</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef IteratorBase&lt;<a class="el" href="classshark_1_1_data_view.html#ae4aed6ddb082c41f4db8025b202ed236">reference</a>,<a class="el" href="classshark_1_1_data_view.html">DataView</a>&lt;DatasetType&gt; &gt; <a class="el" href="classshark_1_1_data_view.html">shark::DataView</a>&lt; DatasetType &gt;::iterator</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_data_view_8h_source.html#l00137">137</a> of file <a class="el" href="_data_view_8h_source.html">DataView.h</a>.</p>

</div>
</div>
<a id="ae4aed6ddb082c41f4db8025b202ed236" name="ae4aed6ddb082c41f4db8025b202ed236"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae4aed6ddb082c41f4db8025b202ed236">&#9670;&#160;</a></span>reference</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef boost::mpl::if_&lt;std::is_const&lt;DatasetType&gt;,typenamedataset_type::const_element_reference,typenamedataset_type::element_reference&gt;::type <a class="el" href="classshark_1_1_data_view.html">shark::DataView</a>&lt; DatasetType &gt;::reference</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_data_view_8h_source.html#l00073">73</a> of file <a class="el" href="_data_view_8h_source.html">DataView.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ab9a6a0d93261ae6e467ff03dc1ebdc69" name="ab9a6a0d93261ae6e467ff03dc1ebdc69"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab9a6a0d93261ae6e467ff03dc1ebdc69">&#9670;&#160;</a></span>DataView() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_data_view.html">shark::DataView</a>&lt; DatasetType &gt;::DataView </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_data_view_8h_source.html#l00140">140</a> of file <a class="el" href="_data_view_8h_source.html">DataView.h</a>.</p>

</div>
</div>
<a id="ae1cb988a3c7a5d0d4bf13eec0af75e90" name="ae1cb988a3c7a5d0d4bf13eec0af75e90"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1cb988a3c7a5d0d4bf13eec0af75e90">&#9670;&#160;</a></span>DataView() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_data_view.html">shark::DataView</a>&lt; DatasetType &gt;::DataView </td>
          <td>(</td>
          <td class="paramtype">DatasetType &amp;&#160;</td>
          <td class="paramname"><em>dataset</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_data_view_8h_source.html#l00141">141</a> of file <a class="el" href="_data_view_8h_source.html">DataView.h</a>.</p>

<p class="reference">References <a class="el" href="namespaceshark.html#af2ab10364feb8a631e0866dcf2f1a4ad">shark::batchSize()</a>, <a class="el" href="classshark_1_1_data_view.html#a20c3d8aa10aa6056277df2f02261033b">shark::DataView&lt; DatasetType &gt;::dataset()</a>, and <a class="el" href="classshark_1_1_data_view.html#a8eb1ce492f50ab67e4c222f1315f83cc">shark::DataView&lt; DatasetType &gt;::index()</a>.</p>

</div>
</div>
<a id="a436f5cd8b4ebf4e709edd2932922f801" name="a436f5cd8b4ebf4e709edd2932922f801"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a436f5cd8b4ebf4e709edd2932922f801">&#9670;&#160;</a></span>DataView() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetType &gt; </div>
<div class="memtemplate">
template&lt;class IndexRange &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_data_view.html">shark::DataView</a>&lt; DatasetType &gt;::DataView </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_data_view.html">DataView</a>&lt; DatasetType &gt; const &amp;&#160;</td>
          <td class="paramname"><em>view</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IndexRange const &amp;&#160;</td>
          <td class="paramname"><em>indices</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>create a subset of the dataset type using only the elemnt indexed by indices </p>

<p class="definition">Definition at line <a class="el" href="_data_view_8h_source.html#l00157">157</a> of file <a class="el" href="_data_view_8h_source.html">DataView.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="af00a7bc78ffc60fcacedbe291b4d24e6" name="af00a7bc78ffc60fcacedbe291b4d24e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af00a7bc78ffc60fcacedbe291b4d24e6">&#9670;&#160;</a></span>back() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_data_view.html#ae4aed6ddb082c41f4db8025b202ed236">reference</a> <a class="el" href="classshark_1_1_data_view.html">shark::DataView</a>&lt; DatasetType &gt;::back </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_data_view_8h_source.html#l00183">183</a> of file <a class="el" href="_data_view_8h_source.html">DataView.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_data_view.html#a71ba14d4f067dc437d6683dac9982f77">shark::DataView&lt; DatasetType &gt;::size()</a>, and <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

</div>
</div>
<a id="aceed1b5fafb9bf86149152708aedb979" name="aceed1b5fafb9bf86149152708aedb979"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aceed1b5fafb9bf86149152708aedb979">&#9670;&#160;</a></span>back() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_data_view.html#af6445b99d55d8f0db60da959d9c68edc">const_reference</a> <a class="el" href="classshark_1_1_data_view.html">shark::DataView</a>&lt; DatasetType &gt;::back </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_data_view_8h_source.html#l00187">187</a> of file <a class="el" href="_data_view_8h_source.html">DataView.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_data_view.html#a71ba14d4f067dc437d6683dac9982f77">shark::DataView&lt; DatasetType &gt;::size()</a>, and <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

</div>
</div>
<a id="a4c811224fc77356555fcecfb5b41cb65" name="a4c811224fc77356555fcecfb5b41cb65"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c811224fc77356555fcecfb5b41cb65">&#9670;&#160;</a></span>batch()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::size_t <a class="el" href="classshark_1_1_data_view.html">shark::DataView</a>&lt; DatasetType &gt;::batch </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>position</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Index of the batch holding the element. </p>

<p class="definition">Definition at line <a class="el" href="_data_view_8h_source.html#l00201">201</a> of file <a class="el" href="_data_view_8h_source.html">DataView.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_difference_kernel_matrix.html#a75322ec30dee27e1a7343e71853bd4d6">shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt;::DifferenceKernelMatrix()</a>.</p>

</div>
</div>
<a id="a3e7c59021eff4745396ed9951c2f05ca" name="a3e7c59021eff4745396ed9951c2f05ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e7c59021eff4745396ed9951c2f05ca">&#9670;&#160;</a></span>begin() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_data_view.html#ab998c6011a12ee2a3fd7d9215564a582">iterator</a> <a class="el" href="classshark_1_1_data_view.html">shark::DataView</a>&lt; DatasetType &gt;::begin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_data_view_8h_source.html#l00214">214</a> of file <a class="el" href="_data_view_8h_source.html">DataView.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="group__shark__globals.html#ga3c0660922e34389d005bb81e9bde0c18">shark::toDataset()</a>.</p>

</div>
</div>
<a id="a02edf0f65deefa88fbcaef18276b5041" name="a02edf0f65deefa88fbcaef18276b5041"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a02edf0f65deefa88fbcaef18276b5041">&#9670;&#160;</a></span>begin() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_data_view.html#a8040495749c12a5d12fafe92bef9769d">const_iterator</a> <a class="el" href="classshark_1_1_data_view.html">shark::DataView</a>&lt; DatasetType &gt;::begin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_data_view_8h_source.html#l00217">217</a> of file <a class="el" href="_data_view_8h_source.html">DataView.h</a>.</p>

</div>
</div>
<a id="a20c3d8aa10aa6056277df2f02261033b" name="a20c3d8aa10aa6056277df2f02261033b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a20c3d8aa10aa6056277df2f02261033b">&#9670;&#160;</a></span>dataset()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">dataset_type const  &amp; <a class="el" href="classshark_1_1_data_view.html">shark::DataView</a>&lt; DatasetType &gt;::dataset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_data_view_8h_source.html#l00227">227</a> of file <a class="el" href="_data_view_8h_source.html">DataView.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="group__shark__globals.html#ga5ef7f15d261cffb78c3b8e91765619a2">shark::dataDimension()</a>, <a class="el" href="classshark_1_1_data_view.html#ae1cb988a3c7a5d0d4bf13eec0af75e90">shark::DataView&lt; DatasetType &gt;::DataView()</a>, <a class="el" href="group__shark__globals.html#ga148ab5a691f06b225ccfc21d9e039cef">shark::inputDimension()</a>, <a class="el" href="group__shark__globals.html#ga248204f65ae4b8c30604f5a609cb7bf6">shark::labelDimension()</a>, and <a class="el" href="group__shark__globals.html#ga884afb6868800ff6f15e9a3dc7f1c73b">shark::numberOfClasses()</a>.</p>

</div>
</div>
<a id="a238dbacc7eded17835f90c6edccdcb95" name="a238dbacc7eded17835f90c6edccdcb95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a238dbacc7eded17835f90c6edccdcb95">&#9670;&#160;</a></span>end() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_data_view.html#ab998c6011a12ee2a3fd7d9215564a582">iterator</a> <a class="el" href="classshark_1_1_data_view.html">shark::DataView</a>&lt; DatasetType &gt;::end </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_data_view_8h_source.html#l00220">220</a> of file <a class="el" href="_data_view_8h_source.html">DataView.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_data_view.html#a71ba14d4f067dc437d6683dac9982f77">shark::DataView&lt; DatasetType &gt;::size()</a>.</p>

<p class="reference">Referenced by <a class="el" href="group__shark__globals.html#ga3c0660922e34389d005bb81e9bde0c18">shark::toDataset()</a>.</p>

</div>
</div>
<a id="a232c001d3d8c239031040dbbb3eb7437" name="a232c001d3d8c239031040dbbb3eb7437"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a232c001d3d8c239031040dbbb3eb7437">&#9670;&#160;</a></span>end() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_data_view.html#a8040495749c12a5d12fafe92bef9769d">const_iterator</a> <a class="el" href="classshark_1_1_data_view.html">shark::DataView</a>&lt; DatasetType &gt;::end </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_data_view_8h_source.html#l00223">223</a> of file <a class="el" href="_data_view_8h_source.html">DataView.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_data_view.html#a71ba14d4f067dc437d6683dac9982f77">shark::DataView&lt; DatasetType &gt;::size()</a>.</p>

</div>
</div>
<a id="a7652743856e2ef532984d54ae1eb6104" name="a7652743856e2ef532984d54ae1eb6104"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7652743856e2ef532984d54ae1eb6104">&#9670;&#160;</a></span>front() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_data_view.html#ae4aed6ddb082c41f4db8025b202ed236">reference</a> <a class="el" href="classshark_1_1_data_view.html">shark::DataView</a>&lt; DatasetType &gt;::front </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_data_view_8h_source.html#l00175">175</a> of file <a class="el" href="_data_view_8h_source.html">DataView.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_data_view.html#a71ba14d4f067dc437d6683dac9982f77">shark::DataView&lt; DatasetType &gt;::size()</a>, and <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

</div>
</div>
<a id="ac3076578a2ecd9caf720e970976bec8d" name="ac3076578a2ecd9caf720e970976bec8d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac3076578a2ecd9caf720e970976bec8d">&#9670;&#160;</a></span>front() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_data_view.html#af6445b99d55d8f0db60da959d9c68edc">const_reference</a> <a class="el" href="classshark_1_1_data_view.html">shark::DataView</a>&lt; DatasetType &gt;::front </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_data_view_8h_source.html#l00179">179</a> of file <a class="el" href="_data_view_8h_source.html">DataView.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_data_view.html#a71ba14d4f067dc437d6683dac9982f77">shark::DataView&lt; DatasetType &gt;::size()</a>, and <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

</div>
</div>
<a id="a8eb1ce492f50ab67e4c222f1315f83cc" name="a8eb1ce492f50ab67e4c222f1315f83cc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8eb1ce492f50ab67e4c222f1315f83cc">&#9670;&#160;</a></span>index()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::size_t <a class="el" href="classshark_1_1_data_view.html">shark::DataView</a>&lt; DatasetType &gt;::index </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>position</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Position of the element in the dataset. </p>
<p>This is useful for bagging, when identical elements among several subsets are to be identified. </p>

<p class="definition">Definition at line <a class="el" href="_data_view_8h_source.html#l00196">196</a> of file <a class="el" href="_data_view_8h_source.html">DataView.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_data_view.html#ae1cb988a3c7a5d0d4bf13eec0af75e90">shark::DataView&lt; DatasetType &gt;::DataView()</a>, <a class="el" href="classshark_1_1_data_view.html#a096d8cc31117ca710fe41f79c46a9faf">shark::DataView&lt; DatasetType &gt;::operator[]()</a>, and <a class="el" href="classshark_1_1_data_view.html#a4b1faee54e297b25d77ef24375d22fe2">shark::DataView&lt; DatasetType &gt;::operator[]()</a>.</p>

</div>
</div>
<a id="a096d8cc31117ca710fe41f79c46a9faf" name="a096d8cc31117ca710fe41f79c46a9faf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a096d8cc31117ca710fe41f79c46a9faf">&#9670;&#160;</a></span>operator[]() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_data_view.html#ae4aed6ddb082c41f4db8025b202ed236">reference</a> <a class="el" href="classshark_1_1_data_view.html">shark::DataView</a>&lt; DatasetType &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>position</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_data_view_8h_source.html#l00164">164</a> of file <a class="el" href="_data_view_8h_source.html">DataView.h</a>.</p>

<p class="reference">References <a class="el" href="namespaceshark.html#a1531880b9b4076854b0b26441d353242">shark::getBatchElement()</a>, <a class="el" href="classshark_1_1_data_view.html#a8eb1ce492f50ab67e4c222f1315f83cc">shark::DataView&lt; DatasetType &gt;::index()</a>, <a class="el" href="classshark_1_1_data_view.html#a71ba14d4f067dc437d6683dac9982f77">shark::DataView&lt; DatasetType &gt;::size()</a>, and <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

</div>
</div>
<a id="a4b1faee54e297b25d77ef24375d22fe2" name="a4b1faee54e297b25d77ef24375d22fe2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b1faee54e297b25d77ef24375d22fe2">&#9670;&#160;</a></span>operator[]() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_data_view.html#af6445b99d55d8f0db60da959d9c68edc">const_reference</a> <a class="el" href="classshark_1_1_data_view.html">shark::DataView</a>&lt; DatasetType &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>position</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_data_view_8h_source.html#l00169">169</a> of file <a class="el" href="_data_view_8h_source.html">DataView.h</a>.</p>

<p class="reference">References <a class="el" href="namespaceshark.html#a1531880b9b4076854b0b26441d353242">shark::getBatchElement()</a>, <a class="el" href="classshark_1_1_data_view.html#a8eb1ce492f50ab67e4c222f1315f83cc">shark::DataView&lt; DatasetType &gt;::index()</a>, <a class="el" href="classshark_1_1_data_view.html#a71ba14d4f067dc437d6683dac9982f77">shark::DataView&lt; DatasetType &gt;::size()</a>, and <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

</div>
</div>
<a id="a892be77ecf008f78e44452b1a201980a" name="a892be77ecf008f78e44452b1a201980a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a892be77ecf008f78e44452b1a201980a">&#9670;&#160;</a></span>positionInBatch()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::size_t <a class="el" href="classshark_1_1_data_view.html">shark::DataView</a>&lt; DatasetType &gt;::positionInBatch </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>position</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Index inside the batch holding the element. </p>

<p class="definition">Definition at line <a class="el" href="_data_view_8h_source.html#l00206">206</a> of file <a class="el" href="_data_view_8h_source.html">DataView.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_difference_kernel_matrix.html#a75322ec30dee27e1a7343e71853bd4d6">shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt;::DifferenceKernelMatrix()</a>.</p>

</div>
</div>
<a id="a71ba14d4f067dc437d6683dac9982f77" name="a71ba14d4f067dc437d6683dac9982f77"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71ba14d4f067dc437d6683dac9982f77">&#9670;&#160;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DatasetType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::size_t <a class="el" href="classshark_1_1_data_view.html">shark::DataView</a>&lt; DatasetType &gt;::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_data_view_8h_source.html#l00210">210</a> of file <a class="el" href="_data_view_8h_source.html">DataView.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_data_view.html#af00a7bc78ffc60fcacedbe291b4d24e6">shark::DataView&lt; DatasetType &gt;::back()</a>, <a class="el" href="classshark_1_1_data_view.html#aceed1b5fafb9bf86149152708aedb979">shark::DataView&lt; DatasetType &gt;::back()</a>, <a class="el" href="group__shark__globals.html#gabb5bec2fca9d1eaa2ea58c75d36d1195">shark::createCVSameSizeBalanced()</a>, <a class="el" href="classshark_1_1_data_view.html#a238dbacc7eded17835f90c6edccdcb95">shark::DataView&lt; DatasetType &gt;::end()</a>, <a class="el" href="classshark_1_1_data_view.html#a232c001d3d8c239031040dbbb3eb7437">shark::DataView&lt; DatasetType &gt;::end()</a>, <a class="el" href="classshark_1_1_missing_features_kernel_expansion.html#ad54351526ec5ab5370b56e5a6b5250ed">shark::MissingFeaturesKernelExpansion&lt; InputType &gt;::eval()</a>, <a class="el" href="group__shark__globals.html#gaff457dd5765f70c216e99daa8729f653">shark::exportKernelMatrix()</a>, <a class="el" href="classshark_1_1_data_view.html#a7652743856e2ef532984d54ae1eb6104">shark::DataView&lt; DatasetType &gt;::front()</a>, <a class="el" href="classshark_1_1_data_view.html#ac3076578a2ecd9caf720e970976bec8d">shark::DataView&lt; DatasetType &gt;::front()</a>, <a class="el" href="_datasets_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main()</a>, <a class="el" href="classshark_1_1_data_view.html#a096d8cc31117ca710fe41f79c46a9faf">shark::DataView&lt; DatasetType &gt;::operator[]()</a>, <a class="el" href="classshark_1_1_data_view.html#a4b1faee54e297b25d77ef24375d22fe2">shark::DataView&lt; DatasetType &gt;::operator[]()</a>, <a class="el" href="group__shark__globals.html#ga43b37371406e040f057680d5e7182341">shark::randomSubBatch()</a>, <a class="el" href="group__shark__globals.html#ga6d5f76f9a5891a8675c3ee297d57ad48">shark::randomSubset()</a>, and <a class="el" href="group__shark__globals.html#ga3c0660922e34389d005bb81e9bde0c18">shark::toDataset()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/Data/<a class="el" href="_data_view_8h_source.html">DataView.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
